package com.bailugansan.efficiencyboard.dao;

import com.bailugansan.efficiencyboard.pojo.Pool;

import java.util.List;

/**
 * 池子操作接口
 * @author BailuGansan
 */
public interface PoolDao {

    /**
     *
     * @param poolName
     * @param color
     * @param uid
     */
    boolean addPool(String poolName, String color, String uid);

    /**
     *
     * @param poolId
     * @param poolName
     * @param color
     */
    boolean updatePool(int poolId, String poolName, String color, String uid);

    /**
     * 根据池子ID删除对应池子
     * @param poolId
     */
    boolean removerPool(int poolId, String uid);

    /**
     *
     * @param uid
     * @return
     */
    boolean initPool(String uid);

    /**
     *
     * @param uid
     * @return
     */
    List<Pool> getPools(String uid);

    /**
     *
     * @param poolName
     * @param uid
     * @return
     */
    int getPoolId(String poolName, String uid);
}
